<?php
/**
 * @TABLE "counter_view"
 * @JOIN_FROM "category_id < category.id"
 * @JOIN_FROM "user_id < user.id"
 */
class BaseCounterView extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @PRIMARY
	 * @COLUMN "id"
	 * @TYPE "bigint"
	 * @LENGTH "20"
	 * @NOT_NULL
	 * @AUTO_INCREMENT
	 */
	public $id;

	/**
	 * @COLUMN "user_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 */
	public $user_id;

	/**
	 * @COLUMN "external_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $external_id;

	/**
	 * @COLUMN "reference_table"
	 * @TYPE "varchar"
	 * @LENGTH "45"
	 * @NOT_NULL
	 */
	public $reference_table;

	/**
	 * @COLUMN "category_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 */
	public $category_id;

	/**
	 * @COLUMN "user_ip"
	 * @TYPE "varchar"
	 * @LENGTH "40"
	 * @NOT_NULL
	 */
	public $user_ip;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;
}
?>